package com.tansun.easycare.rule.scoremodel.entity;

import org.hibernate.validator.constraints.Length;

import com.tansun.easycare.rule.common.entity.RuleBaseEntity;

/**
 * 评分模型指标明细Entity
 *
 * @author lph
 * @version 2017-03-29
 */
public class RuleScoreInfo extends RuleBaseEntity<RuleScoreInfo> {

    private static final long serialVersionUID = 1L;
    private String manageId;        // 关联ID
    private String projectCode;        // 规则项目编码
    private String parentTreeId; //表格树父级ID
    private String treeId;        // 表格树ID
    private String label;        // 表格树标签
    private String version;        // 版本信息
    private Double scoreVal;        // 分值
    private String symbol;        // 操作符
    private String contrastVals;        // 对比值
    private String lowerOpt;        // 下限符
    private String lowerVal;        // 下限值
    private String upperOpt;        // 上限符
    private String upperVal;        // 上限
    private String sectionType;        // 类型（分段，线性，正差，反差）
    private String formulaLabel;        // 公式文本
    private String formula;        // 公式
    private Integer seq;        // 排序号
    private String scopeDesc;        // 描述信息
    private String isOther;
    private String namecn; // 表格树标签
    
    
    public String getNamecn() {
		return namecn;
	}

	public void setNamecn(String namecn) {
		this.namecn = namecn;
	}

	public RuleScoreInfo() {
        super();
    }

    public RuleScoreInfo(String id) {
        super(id);
    }

    public String getParentTreeId() {
        return parentTreeId;
    }

    public void setParentTreeId(String parentTreeId) {
        this.parentTreeId = parentTreeId;
    }

    @Length(min = 1, max = 50, message = "关联ID长度必须介于 1 和 50 之间")
    public String getManageId() {
        return manageId;
    }

    public void setManageId(String manageId) {
        this.manageId = manageId;
    }

    @Length(min = 0, max = 10, message = "表格树ID长度必须介于 0 和 10 之间")
    public String getTreeId() {
        return treeId;
    }

    @Length(min = 1, max = 50, message = "规则项目编码长度必须介于 1 和 50 之间")
    public String getProjectCode() {
        return projectCode;
    }

    public void setProjectCode(String projectCode) {
        this.projectCode = projectCode;
    }

    public void setTreeId(String treeId) {
        this.treeId = treeId;
    }

    @Length(min = 0, max = 50, message = "表格树标签长度必须介于 0 和 50 之间")
    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    @Length(min = 0, max = 10, message = "版本信息长度必须介于 0 和 10 之间")
    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public Double getScoreVal() {
        return scoreVal;
    }

    public void setScoreVal(Double scoreVal) {
        this.scoreVal = scoreVal;
    }

    @Length(min = 0, max = 10, message = "操作符长度必须介于 0 和 10 之间")
    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    @Length(min = 0, max = 100, message = "对比值长度必须介于 0 和 100 之间")
    public String getContrastVals() {
        return contrastVals;
    }

    public void setContrastVals(String contrastVals) {
        this.contrastVals = contrastVals;
    }

    @Length(min = 0, max = 50, message = "下限符长度必须介于 0 和 50 之间")
    public String getLowerOpt() {
        return lowerOpt;
    }

    public void setLowerOpt(String lowerOpt) {
        this.lowerOpt = lowerOpt;
    }

    public String getLowerVal() {
        return lowerVal;
    }

    public void setLowerVal(String lowerVal) {
        this.lowerVal = lowerVal;
    }

    @Length(min = 0, max = 50, message = "上限符长度必须介于 0 和 50 之间")
    public String getUpperOpt() {
        return upperOpt;
    }

    public void setUpperOpt(String upperOpt) {
        this.upperOpt = upperOpt;
    }

    public String getUpperVal() {
        return upperVal;
    }

    public void setUpperVal(String upperVal) {
        this.upperVal = upperVal;
    }

    @Length(min = 0, max = 10, message = "类型（分段，线性，正差，反差）长度必须介于 0 和 10 之间")
    public String getSectionType() {
        return sectionType;
    }

    public void setSectionType(String sectionType) {
        this.sectionType = sectionType;
    }

    @Length(min = 0, max = 200, message = "公式文本长度必须介于 0 和 200 之间")
    public String getFormulaLabel() {
        return formulaLabel;
    }

    public void setFormulaLabel(String formulaLabel) {
        this.formulaLabel = formulaLabel;
    }

    @Length(min = 0, max = 200, message = "公式长度必须介于 0 和 200 之间")
    public String getFormula() {
        return formula;
    }

    public void setFormula(String formula) {
        this.formula = formula;
    }

    public Integer getSeq() {
        return seq;
    }

    public void setSeq(Integer seq) {
        this.seq = seq;
    }

    @Length(min = 0, max = 100, message = "描述信息长度必须介于 0 和 100 之间")
    public String getScopeDesc() {
        return scopeDesc;
    }

    public void setScopeDesc(String scopeDesc) {
        this.scopeDesc = scopeDesc;
    }

    public String getIsOther() {
        return isOther;
    }

    public void setIsOther(String isOther) {
        this.isOther = isOther;
    }

}